<template>
  <el-tabs v-model="activeName" @tab-click="handleClick" >
    <el-tab-pane label="企业详细信息" name="first">
        
        <Messageform1 :companyCode="companyCode"/>
    
    </el-tab-pane>
    <el-tab-pane label="高管信息" name="second">
        
       <Toppeople1 :companyCode="companyCode"/>
    
    </el-tab-pane>
  </el-tabs>
</template>
<script>

import Messageform1 from '@/components/Messageform1.vue'
import Toppeople1 from '@/components/Toppeople1.vue'

  export default {
    name: 'Home',
    components: {
    Messageform1,
    Toppeople1
  },
    data() {
      return {
        activeName: 'second',
        companyCode:this.$route.query.companyCode
      };
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }        
    } 
    ,
    mounted(){
      console.log(this.$route.query.companyCode)
      this.companyCode = this.$route.query.companyCode
      console.log(this.companyCode )
    }
      
  };
</script>